package de.koller.million.render.obj.environment;

import de.koller.oceanFramework.math.Vec3;
import de.koller.oceanFramework.tree.Sea3X;

public class Environment extends Sea3X {
	
	private Vec3 lightVec = new Vec3( 1, -0.8, 0.2f );
	
	public int getLight( Vec3 pos, Vec3 normal, double[] modelMatrix ) {
		throw new UnsupportedOperationException();
//		Vec3 n = normal.newInstance();
//		
//		Matrix m = new Matrix( modelMatrix, 4 );
//		Matrix v = new Matrix( new double[][] { { n.getX() }, { n.getY() }, { n.getZ() }, { 1 } } );
//		Matrix r = m.times( v );
//		
//		n.set( r.get( 1, 0 ), r.get( 2, 0 ), r.get( 3, 0 ) );
//		double i = Math.cos( lightVec.angleBetween( n ) );
//		int c = (int)(i * 0xff);
//		return ColorIntUtil.getIntColor( 0xff, c, c, c );
	}
	
}
